package 策略模式.three;

public class ModelDuck extends Duck {

	public ModelDuck() {
		flyBehavior = new FlyNoWay();
		quackBehavior = new Quack();
	}
	
	@Override
	public void swim() {
		System.out.println("游泳：模型鸭子下不了水");
	}
	
	@Override
	void display() {
		System.out.println("外观：模型");

	}

	@Override
	void type() {
		System.out.println("种类：模型鸭");

	}
	
	@Override
	public void test() {
		setFlyBehavior(new FlyRocketPowered());
		setQuackBehavior(new WangwangQuack());
		super.test();
	}

}
